﻿/* 
 * author: www.cnblogs.com/luminji
 * date  : 2011/12/28
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Luminji.Infrastructure.RepositoryFramework;

namespace Luminji.Exam.Model.Papers
{
    public interface IPaperRepository : IRepository<Paper>
    {
        /// <summary>
        /// 获取试卷题干信息
        /// </summary>
        /// <param name="paperCode"></param>
        /// <returns></returns>
        Paper FindByPaperCode(string paperCode);
        /// <summary>
        /// 获取完整试卷
        /// </summary>
        /// <param name="paperCode"></param>
        /// <returns></returns>
        Paper FindWithDetailByPaperCode(string paperCode);
        IList<Paper> FindBySubjectCode(string subjectCode);
        IList<Paper> FindBySubjectAndChildrenCodeInPage(string subjectCode, int pageNum);
        IList<Paper> FindBySubjectAndChildrenCode(string subjectCode);
        int FindPapersNumsBySubjectAndChildrenCode(string subjectCode);

        IList<Paper> Find(string userCode, int showType);
    }
}
